<!-- 标准体系管理 -->
<template>
  <div class="approval-container" style="width:100%">
    <div class="search-container">
      <div class="search-container-left">
        <!--showMidifyDialog-->
        <div class="export-button" style="width: 180px;" @click="showMidifyClick ">
          <img src="../../../assets/assessment/class-add-icon.png" alt=""/>
          <span>新建标准体系等级</span>
        </div>
      </div>
    </div>
    <div class="plan-entry-table-container">
      <el-table
        :data="tableData"
        style="width: 100%"
        class="xpaas-table-class"
        row-class-name="xpaas-row-class"
        cell-class-name="xpaas-cell-class"
        header-row-class-name="xpaas-header-row-class"
        header-cell-class-name="xpaas-header-cell-class"
      >
        <el-table-column
          prop="guiderankoption"
          label="等级对应选项(对应分值)"
          align="center"
          class-name=""
          label-class-name=""
        >

        </el-table-column>

        <el-table-column
          prop="sjcl"
          label="操作"
          align="center"
        >
          <template slot-scope="scope">
            <div class="cz-row-block">
              <!--     dialogClick('uploadPaper',scope.$index)       showSeeDialog   -->
              <div class="download-buttones" @click="pjevalByid(scope.row.guiderankid)">
                <img
                  src="../../../assets/admin_slices/acem.png"
                  alt=""
                />
                <span>查看引用</span>
              </div>
              <!--              pjdelete1   guiderankid    showMessageDialog=true-->
              <div class="download-buttons" @click="pjdelete1(scope.row.guiderankid)">
                <img
                  src="../../../assets/assessment/icon-plan-record-save.png"
                  alt=""
                />
                <span>删除</span>
              </div>
              <!--         pjguiderankById(scope.row.guiderankid) pjguiderankById      pjguiderankById(scope.row.guiderankid)-->

              <div class="ztcz-detail" @click="showMidifyDialogClick(scope.$index)">
                <img
                  src="../../../assets/assessment/icon-plan-record-detail.png"
                  alt=""
                />
                <span>编辑</span>
              </div>
            </div>
          </template>
        </el-table-column>

      </el-table>
    </div>

    <!-- 编辑标准等级dialog start-->
    <el-dialog
      title="编辑标准等级"
      :visible.sync="showMidifyDialog"
      width="1185px"
      class="manual-entry-container"
    >
      <div class="table-container" style="margin-top: 0">
        <el-table
          max-height="400"
          :data="midifyDialogtableData"
          border
          style="width: 100%"
          class="table-data"
          row-class-name="row-class"
          cell-class-name="cell-class"
          header-row-class-name="header-row-class"
          header-cell-class-name="header-cell-class"
        >
          <el-table-column prop="sysName" label="标准体系名称" align="center">
          </el-table-column>
          <el-table-column
            prop="sysIntro"
            label="标准体系名称简介"
            align="center"
          >
            <template slot-scope="scope">
              <el-input size="small" v-model="scope.row.sysIntro"></el-input>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <span slot="footer" class="dialog-footer" style="margin-right: 10%">
<!--      dialogClickconfirm('Message')  -->
        <button class="green" @click=" MidifyDialogSave">保 存</button>
      </span>
      <span slot="footer" class="dialog-footer">
        <button class="yellow" @click="showMidifyDialog = false">取 消</button>
      </span>

    </el-dialog>
    <!-- 编辑标准等级dialog end-->


    <!-- 新建标准等级 start-->
    <el-dialog
      title="新建标准等级"
      :visible.sync="newMidifyDialog"
      width="1185px"
      class="manual-entry-container"
    >
      <div class="table-container" style="margin-top: 0">
        <el-table
          max-height="400"
          :data="midifyDialogtableData"
          border
          style="width: 100%"
          class="table-data"
          row-class-name="row-class"
          cell-class-name="cell-class"
          header-row-class-name="header-row-class"
          header-cell-class-name="header-cell-class"
        >
          <el-table-column prop="sysName" label="标准体系名称" align="center">
          </el-table-column>
          <el-table-column
            prop="sysIntro"
            label="标准体系名称简介"
            align="center"
          >
            <template slot-scope="scope">
              <el-input size="small" v-model="scope.row.sysIntro"></el-input>
            </template>
          </el-table-column>
        </el-table>
      </div>

      <span slot="footer" class="dialog-footer" style="margin-right: 10%">
<!--      dialogClickconfirm('Message')  -->
        <button class="green" @click="showMidifySave">保 存</button>
      </span>
      <span slot="footer" class="dialog-footer">
        <button class="yellow" @click="newMidifyDialog = false">取 消</button>
      </span>


    </el-dialog>
    <!-- 编辑标准等级dialog end-->


    <!-- 查看标准等级引用dialog start-->
    <el-dialog
      title="查看标准等级引用"
      :visible.sync="showSeeDialog"
      width="1185px"
      class="manual-entry-container"
    >
      <div class="table-container" style="margin-top: 0">
        <el-table
          max-height="400"
          :data="midifyDialogtableData"
          border
          style="width: 100%"
          class="table-data"
          row-class-name="row-class"
          cell-class-name="cell-class"
          header-row-class-name="header-row-class"
          header-cell-class-name="header-cell-class"
        >
          <el-table-column prop="guidename" label="标准体系名称" align="center">
          </el-table-column>
          <el-table-column
            prop="guidecomments"
            label="标准体系名称简介"
            align="center"
          >
          </el-table-column>
        </el-table>
      </div>

    </el-dialog>
    <!-- 查看标准等级引用dialog end-->

    <el-dialog
      title="提示"
      :visible.sync="showMessageDialog"
      width="983px"
      style=" height:520px"
      class="message-container"
    >
      <div class="message-text">
        <div v-if="this.namelist.plan"></div>
        <div v-else>确定要删除吗？</div>
      </div>
      <span slot="footer" class="dialog-footer">
        <button class="yellow" @click="dialogClickconfirm('Message')">取 消</button>
      </span>
      <span slot="footer" class="dialog-footer">
<!--      dialogClickconfirm('Message')  -->
        <button class="green" @click="pjdelete('Message')">确 定</button>
      </span>
    </el-dialog>

  </div>
</template>

<script>
import {mapGetters} from "vuex";
import {pjall, pjdelete, pjevalByid, pjguiderankupdate, submit} from "@/api/teacher/admin";

export default {
  data() {
    return {
      guiderankid: '',
      //编辑
      showMidifyDialog: false,
      newMidifyDialog: false,
      //引用
      showSeeDialog: false,
      showMessageDialog: false,
      showMidifylog: false,
      midifyDialogtableData: [],
      midifyDialogtableNum: 10,
      tableData: [],
      yjnameList: [],
      searchNameList: [],
      handleSelection: [],
      namelist: {},

    };
  },
  computed: {
    ...mapGetters(['userInfo']),

  },

  mounted() {
    this.pjall()
  },

  methods: {
    showMidifyClick() {
      let arr = []
      this.newMidifyDialog = true
      for (let i = 0; i < this.midifyDialogtableNum; i++) {

        let obj = {
          sysIntro: "",
          sysName: "评级" + (i + 1),
        }
        arr.push(obj)
      }
      this.midifyDialogtableData = arr
    },
    showMidifySave() {
      let arr = []
      let el = this
      for (let i = 0; i < this.midifyDialogtableData.length; i++) {
        arr.push(this.midifyDialogtableData[i].sysIntro)
      }
      arr = this.ClearNullArr(arr)
      if (arr.length) {
        let guiderankoption = arr.toString()
        let obj = {
          guiderankoption: guiderankoption
        }
        return new Promise(() => {
          submit(obj).then(res => {
            if (res.data.code == 200) {
              el.newMidifyDialog = false
              el.pjall()
            }
          })
        })
      } else {
        this.$message.error('请填写标准体系名称简介');
      }


    },
    ClearNullArr(arr) {
      for (var i = 0, len = arr.length; i < len; i++) {
        if (!arr[i] || arr[i] == '' || arr[i] === undefined) {
          arr.splice(i, 1);
          len--;
          i--;
        }
      }
      return arr;
    },
    showMidifyDialogClick(index) {
      let arr = []
      this.showMidifyDialog = true
      let guiderankoptionArr = this.tableData[index].guiderankoption.split(',')
      for (let i = 0; i < this.midifyDialogtableNum; i++) {
        let obj = {
          sysIntro: guiderankoptionArr[i],
          guiderankid: this.tableData[index].guiderankid,
          guiderankvalue: this.tableData[index].guiderankvalue,
          sysName: "评级" + (i + 1),
        }
        arr.push(obj)
      }
      this.midifyDialogtableData = arr

    },
    //查询全部的标准等级管理
    pjall() {
      return new Promise(() => {
        pjall().then(res => {
          this.tableData = res.data.data
          // this.midifyDialogtableData =res.data.data
        })
      })
    },

    //删除
    pjdelete1(guiderankid) {
      this.showMessageDialog = true
      this.guiderankid = guiderankid
      console.log(guiderankid, 'guiderankid')
    },
    pjdelete() {
      let ids = {}
      ids = this.guiderankid
      console.log(ids, 'ids')
      return new Promise(() => {
        pjdelete(ids).then(res => {
          this.tableData = res.data.data
          this.showMessageDialog = false
          this.pjall()  

          if(res.data.code == 200 && res.data.msg=='操作成功'){
            return this.$message({
              message:res.data.msg,
              type:'success'
            })
          } else if(res.data.msg=='0'){
            return this.$message({
              message:this.tableData,
              type:'error'
            })
          } else {
            return this.$message({
              message:'操作失败！',
              type:'error'
            })
          }    
        })
      })
    }, 
    //编辑
    MidifyDialogSave() {
      let arr = []
      let el = this
      for (let i = 0; i < this.midifyDialogtableData.length; i++) {
        arr.push(this.midifyDialogtableData[i].sysIntro)
      }
      arr = this.ClearNullArr(arr)
      if (arr.length) {
        let guiderankoption = arr.toString()
        let obj = {
          guiderankid: this.midifyDialogtableData[0].guiderankid, //id
          guiderankoption: guiderankoption, //标准体系名称
          guiderankvalue: this.midifyDialogtableData[0].guiderankid //标准体系名称简介
        }
        return new Promise(() => {
          pjguiderankupdate(obj).then(res => {
            if (res.data.code == 200 && res.data.msg=='操作成功') {
              el.showMidifyDialog = false
              el.pjall()
            } else if(res.data.msg=='0'){
              el.showMidifyDialog = false
              return this.$message({
                message:res.data.data,
                type:'error'
              })
            } else {
              return this.$message({
                message:'操作失败！',
                type:'error'
              })
            }
          })
        })
      }
    },


    //新建


    //查看引用
    pjevalByid(guiderankid) {
      this.showSeeDialog = true
      this.guiderankid = guiderankid
      let id = {}
      id = this.guiderankid
      return new Promise(() => {
        pjevalByid(id).then(res => {
          this.midifyDialogtableData = res.data.data
        })
      })
    },


    dialogClickconfirm(type) {
      let obj = {}
      if (type === 'Message') {
        this.showMessageDialog = !this.showMessageDialog
      } else if (type === 'Rename') {
        obj.id = this.namelist.id
        obj.status = '0'
        this.showRenameDialog = !this.showRenameDialog
        this.getUpdate(obj)
      }
    }


  },
};
</script>
<style lang="less" scoped>
@fontFamily:"Microsoft YaHei";
.xpaas-table-class {
  border: 1px solid #004ca7;
  border-radius: 9px;
  margin: 15px 0;
  > ::v-deep div.el-table__header-wrapper {
    > table.el-table__header {
      > thead {
        > tr.xpaas-header-row-class {
          padding: 0;
          height: 76px;
          background-color: #edf2f9;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          line-height: 20px;
          color: #004ca7;
          > th.xpaas-header-cell-class {
            font-weight: bold;
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            background-color: #edf2f9;
            > div.cell {
              font-size: 16px;
              font-weight: bold;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
        }
      }
    }
  }
  > ::v-deep div.el-table__body-wrapper {
    > table.el-table__body {
      > tbody {
        > tr.xpaas-row-class {
          > td.xpaas-header-cell-class {
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            background-color: #edf2f9;
            > div.cell {
              font-size: 16px;
              font-weight: bold;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
          > td.xpaas-cell-class {
            height: 76px;
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            > div.cell {
              font-weight: normal;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
        }
      }
    }
  }
}
.approval-container {
  .back-container {
    .back-text {
      margin-top: 33px;

      > div {
        display: inline-block;

        &:nth-child(1) {
          padding-left: 111px;
          font-size: 20px;
          color: rgba(0, 76, 167, 1);
          font-weight: bold;
          vertical-align: top;
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;


    }
  }

  .message-container {
    .message-text {
      > div {
        padding: 57px 0 63px 0;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        text-align: center;
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
      display: flex;
      justify-content: space-evenly;
    }
  }

  .paper-message-container {
    .paper-message-text {
      > div {
        padding: 57px 0 63px 0;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        text-align: center;
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;

    }

    .confirm-button {
      width: 87px;
      height: 36px;
      padding: 0;
      background: #f1fff8;
      border: 1px solid #02c86c;
      border-radius: 4px;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #02c86c;
      cursor: pointer;
      margin-right: 92px;
    }

    .cancle-button {
      .confirm-button;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
      margin-right: 0px;
    }
  }

  .upload-paper-container {
    .paper-container {
      width: 100%;
      height: 236px;
      opacity: 1;

      .paper-container-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-family: Microsoft YaHei;

        margin-bottom: 35px;
        border: 1px solid #004CA7;

        .paper-container-box1 {
          width: 233px;
          height: 126px;
          background: rgba(0, 76, 167, 0.1);
          opacity: 0.1;
          border-radius: 5px 0px 0px 0px;
          display: flex;
          align-items: center;
          justify-content: center;

          .title {
            width: 90px;
            height: 24px;
            font-size: 18px;
            font-family: Microsoft YaHei;
            font-weight: bold;
            line-height: 20px;
            color: rgba(0, 76, 167, 1);
            opacity: 1;
          }
        }

        .paper-container-box2 {
          margin-left: 15px;
        }

        .upload-button {

        }

        .file-name {
          max-width: 340px;
          margin-right: 10px;
        }

        .scan-button {
          width: 62px;
          height: 28px;
          line-height: 28px;
          background: #fff6ef;
          border: 1px solid #f3b815;
          border-radius: 4px;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #f3b815;
          text-align: center;
          cursor: pointer;
        }

        .download-button {
          .scan-button;
          background: #f1f8fe;
          border: 1px solid #51aef6;
          color: #51aef6;
        }

        img {
          width: 18px;
          height: 19px;
          margin-right: 14px;
        }

        .re-upload-button {
          .upload-button;
          width: 80px;
          color: #02c86c;
          border: 1px solid #02c86c;
          background: #dfffef;

          input {
            width: 80px;
          }
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
      padding-top: 60px;
    }

    .confirm-button {
      width: 87px;
      height: 36px;
      padding: 0;
      background: rgba(90, 101, 204, 0.1);
      border: 1px solid #5230e9;
      border-radius: 4px;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #5230e9;
      cursor: pointer;
      margin-right: 92px;
    }

    .cancle-button {
      .confirm-button;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
      margin-right: 0px;
    }

    .download-button {
      .confirm-button;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      color: #51aef6;
      margin-right: 92px;
    }
  }

  .plan-entry-table-container {
    margin-top: 30px;

    .el-table td,
    .el-table th.is-leaf,
    .el-table--border,
    .el-table--group {
      border-color: #c7d7eb;
    }

    .el-table__header tr,
    .el-table__header th {
      padding: 0;
      height: 76px;
      background-color: #edf2f9;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 20px;
      color: #004ca7;
    }

    .el-table__body tr,
    .el-table__body td {
      padding: 0;
      height: 86px;
    }

    .export-button {
      background: #ebe6ff;

      cursor: pointer;

      background: #fff6ef;
      border: 1px solid #5230e9;
      width: auto;
      height: 28px;
      line-height: 28px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;

      > span {
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #f3b815;
      }

      > img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
      }
    }

    .bk-lucj-import-button {
      .export-button;
      width: 70px;
      background: #f1fff8;
      border: 1px solid #02c86c;
      box-sizing: border-box;
      margin: 0 auto 12px;

      &:last-child {
        margin-bottom: 0px;
      }

      > span {
        color: #02c86c;
      }
    }

    .bk-lucj-expot-button {
      .export-button;
      width: 156px;
      background: #fef1e8;
      border: 1px solid #f86900;
      box-sizing: border-box;
      margin: 0 auto 12px;

      &:last-child {
        margin-bottom: 0px;
      }

      > span {
        color: #f86900;
      }
    }

    .tjst-button {
      width: 78px;
      height: 27px;
      line-height: 27px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      border-radius: 4px;
      text-align: center;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #51aef6;
      cursor: pointer;
    }

    .dh-button {
      .tjst-button;
      margin-top: 12px;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
    }

    .cx-button {
      .tjst-button;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
    }

    .cz-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .txmtjh-button {
      .tjst-button;
      width: 114px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }

    .ckmtjh-button {
      .tjst-button;
      width: 114px;
      background: #f1fff8;
      border: 1px solid #02c86c;
      color: #02c86c;
    }

    .xz-button {
      .tjst-button;
      width: 51px;
      background: #edf2f9;
      border: 1px solid #004ca7;
      color: #004ca7;
    }

    .name-button {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      line-height: 25px;
      color: #004ca7;
      text-decoration: underline;
    }

    .name-button:hover {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 25px;
      color: #187ef8;
    }

    .upload-button {
      .tjst-button;
      width: 98px;
      margin: 0 5px;
      background: #efebff;
      border: 1px solid #5230e9;
      color: #5230e9;
    }

    .download-button {
      .tjst-button;
      width: 48px;
      margin: 0 5px;
    }

    .yl-button {
      .tjst-button;
      width: 48px;
      margin: 0 5px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }

    .cz-row-block {
      display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      align-items: center;

      .download-buttones {
        align-items: center;
        width: 128px;
        height: 28px;
        line-height: 28px;
        background: #EFEBFF;
        border: 1px solid #5230e9;

        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        > span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #5230e9;
        }

        > img {
          width: 16px;
          height: 16px;
          margin-right: 10px;
        }
      }

      .download-buttons {
        align-items: center;
        width: 78px;
        height: 28px;
        line-height: 28px;
        background: #ffefef;
        border: 1px solid #ff3819;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        > span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #fb563c;
        }

        > img {
          width: 16px;
          height: 16px;
          margin-right: 10px;
        }
      }

      .ztcz-detail {
        .download-buttons;
        background: #f1fff8;
        border: 1px solid #02c86c;

        > span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #02c86c;
        }
      }

    }

    .zz-button {
      .tjst-button;
      width: 132px;
      margin: 5px;
      background: #efebff;
      border: 1px solid #5230e9;
      color: #5230e9;
    }

    .tx-button {
      .tjst-button;
      width: 132px;
      letter-spacing: 2px;
      margin: 0 5px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      color: #51aef6;
    }

    .sjfx-button {
      .tjst-button;
      width: 114px;
      margin: 0 5px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }
  }

  .choose-ypr-container {
    width: 767px;
    margin: 0px auto;

    .choose-ypr-search-container {
      .el-input--prefix .el-input__inner {
        padding-left: 30px;
      }

      .el-input__inner {
        &::placeholder {
          color: #b8b8b8;
        }

        &::-webkit-input-placeholder {
          /* WebKit browsers 适配谷歌 */
          color: #b8b8b8;
        }

        &:-moz-placeholder {
          /* Mozilla Firefox 4 to 18 适配火狐 */
          color: #b8b8b8;
        }

        &::-moz-placeholder {
          /* Mozilla Firefox 19+ 适配火狐 */
          color: #b8b8b8;
        }

        &:-ms-input-placeholder {
          /* Internet Explorer 10+  适配ie*/
          color: #b8b8b8;
        }
      }

      display: flex;
      flex-direction: row;
      align-items: center;

      .title {
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        margin-right: 5px;
      }

      .search-button {
        width: 127px;
        height: 28px;
        line-height: 28px;
        background: #f1f8fe;
        border: 1px solid #51aef6;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        > span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #51aef6;
        }

        > img {
          width: 20px;
          height: 20px;
          margin-right: 4px;
        }
      }

      .button-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: 21px;

        .button-item {
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: center;
          position: relative;
          width: 69px;
          height: 27px;
          line-height: 27px;
          border: 1px solid #004ca7;
          border-radius: 4px;
          margin-right: 10px;
          text-align: center;
          font-size: 14px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #004ca7;

          .del-icon {
            position: absolute;
            right: 0px;
            top: 0px;
            width: 12px;
            height: 12px;
            padding: 2px;
          }
        }
      }
    }

    .choose-ypr-table-container {
      margin-top: 30px;

      .el-table td,
      .el-table th.is-leaf,
      .el-table--border,
      .el-table--group {
        border-color: #c7d7eb;
      }

      .el-table__header tr,
      .el-table__header th {
        padding: 0;
        height: 57px;
        background-color: #edf2f9;
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
      }

      .el-table__body tr,
      .el-table__body td {
        padding: 0;
        height: 51px;
      }

      .table-data {
        width: 100%;
        border: 0.8px solid #004ca7;
        border-radius: 9px;
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #004ca7;
      }
    }
  }

  .pagination-block {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }


  .table-container {
    margin-top: 30px;

    .el-table td,
    .el-table th.is-leaf,
    .el-table--border,
    .el-table--group {
      border-color: #c7d7eb;
    }

    .el-table__header tr,
    .el-table__header th {
      padding: 0;
      height: 76px;
      background-color: #edf2f9;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 20px;
      color: #004ca7;
    }

    .el-table__body tr,
    .el-table__body td {
      padding: 0;
      height: 86px;
    }

    .wrapper-button {
      display: flex;
      flex-direction: column;
      align-items: center;

      > div {
        margin-bottom: 8px;
      }
    }
  }
}

.table-container {
  margin-top: 30px;

  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 76px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .wrapper-button {
    display: flex;
    flex-direction: column;
    align-items: center;

    > div {
      margin-bottom: 8px;
    }
  }
}

</style>

<style lang="less" scoped>
@import "../../../styles/approval.less";

.showMidify-footer {
  display: flex;
  justify-content: space-evenly;
}

.table-container::v-deep .el-table__header th {
  border-color: #c7d7eb !important;
  padding-left: 10px;
}

.table-container {
  margin-top: 30px;

  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    border-radius: 9px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}


.plan-entry-table-container {
  margin-top: 30px;

  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    border-radius: 9px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}
.dialog-footer .green {
  margin-left:55px;
}
.approval-container .search-container {
  padding-left:0;
  margin-top:0;
}
</style>
